package cn.com.yusys.yusp.admin.domain;

import cn.com.yusys.yusp.commons.excel.annotation.ExcelColumn;
import cn.com.yusys.yusp.commons.excel.annotation.ExcelColumnPricision;
import cn.com.yusys.yusp.commons.excel.annotation.ExcelName;
import cn.com.yusys.yusp.commons.mapper.domain.BaseDomain;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @项目名称:yusp-example
 * @类名称:ExcelDemo
 * @类描述:Excel导入导出POJO示例
 * @功能描述:
 * @创建人:wangxx7@yusys.com.cn
 * @创建时间:2018年1月5日
 * @修改备注:
 * @修改日期		修改人员		修改原因
 * --------    --------		----------------------------------------
 * @version 1.0.0
 * @Copyright (c) 2018宇信科技-版权所有
 */
@Table(name = "excel_demo")
//@ExcelName(value="ExcelDemo导出", sheet="工作表")
@ExcelName(value="Export ExcelDemo", sheet="Worksheet")
public class ExcelIODemo extends BaseDomain implements Serializable {

    /**
     * @属性名称:serialVersionUID
     * @属性描述:
     * @since 1.0.0
    */
    private static final long serialVersionUID = 1L;
    
    @Id
//    @ExcelColumn(title="ID", index=0)
    @ExcelColumn(title="BookId", index=0)
    private String bookId;

//    @ExcelColumn(title="标题", index=1)
    @ExcelColumn(title="Title", index=1)
    private String title;

//    @ExcelColumn(title="作者", index=2)
    @ExcelColumn(title="Author", index=2)
    private String author;

//    @ExcelColumn(title="日期", index=3)
    @ExcelColumn(title="PublishTime", index=3)
    private Date publishTime;
    
//    @ExcelColumn(title="售价", index=4)
    @ExcelColumn(title="Price", index=4)
    @ExcelColumnPricision(1)
    private Double price;

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
}
